package com.wryyyyy.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wryyyyy
 * @since 2023-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_material")
public class Material implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 材料id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 材料名
     */
    private String materialName;

    /**
     * 材料价格
     */
    private Double price;

    /**
     * 库存
     */
    private Double inventory;

    /**
     * 用量
     */
    @TableField("false")
    private Double weight;

    @TableLogic
    private Boolean isDeleted;
}